<%@ page pageEncoding="UTF-8"%>

<%@ taglib uri="/tags/struts-tiles" prefix="tiles"%>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/struts-logic" prefix="logic"%>
<%@ taglib uri="/tags/struts-nested" prefix="nested"%>
<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/tags/trymore" prefix="tm"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix='fmt'%>

<table class="table" width="100%" layoutH="170">
	<thead>
		<tr>
			<th align="center">序号</th>
			<th align="center">会议时间</th>
			<th align="center">项目编号</th>
			<th align="center">项目名称</th>
			<th align="center">项目负责人</th>
			<th align="center">项目推荐时间</th>
			<th align="center">行业类别</th>
			<th align="center">申请时间</th>
			<th align="center" class="thover">审批</th>
		</tr>
	</thead>
	<tbody>
		<logic:present name="datagrid">
			<logic:iterate name="datagrid" property="items" id="entity" indexId="idx">
				<tr ${idx % 2 == 1 ? 'style="background-color: #F5F5F5"' : ''}>
					<td>${idx+1}</td>
					<td><fmt:formatDate value="${entity.conferenceTime}" type="date" pattern="yyyy-MM-dd HH:mm"/></td>
					<td style="text-align:center">${entity.process.project.projectNo}</td>
					<td style="text-align:left">${entity.process.project.projectName}</td>
					<td style="text-align:left">${entity.process.project.projectManager.username}</td>
					<td><fmt:formatDate value="${entity.process.project.projectRecommendedDate}" type="date" pattern="yyyy-MM-dd"/></td>
					<td style="text-align:left">${entity.process.project.projectType.dictKey}</td>
					<td><fmt:formatDate value="${entity.creationTime}" type="date" pattern="yyyy-MM-dd HH:mm:ss"/></td>
					<td class="thover">
						<a href="app/project/base.do?action=dialogProjectConferencePage&cid=${entity.id}&op=audit" class="oplink" target="dialog" width="1200" height="600">审批</a>
					</td>
				</tr>
			</logic:iterate>
		</logic:present>
	</tbody>
</table>

<!-- Pagination -->
<div class="panelBar">
	<div class="pages">
		<span>显示</span>
		<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
			<option value="20" ${pagingBean ne null && pagingBean.pageSize eq 20 ? 'selected="selected"' : ''}>20</option>
			<option value="50" ${pagingBean ne null && pagingBean.pageSize eq 50 ? 'selected="selected"' : ''}>50</option>
			<option value="100" ${pagingBean ne null && pagingBean.pageSize eq 100 ? 'selected="selected"' : ''}>100</option>
			<option value="200" ${pagingBean ne null && pagingBean.pageSize eq 200 ? 'selected="selected"' : ''}>200</option>
		</select>
		<span>条，共${pagingBean ne null ? pagingBean.totalItems : 0}条</span>
	</div>
	<div class="pagination" targetType="navTab" totalCount="${pagingBean ne null ? pagingBean.totalItems : 0}" numPerPage="${pagingBean ne null ? pagingBean.pageSize : 20}" pageNumShown="${pagingBean ne null ? pagingBean.pageNumShown : 10}" currentPage="${pagingBean ne null ? pagingBean.currentPage : 1}"></div>
</div>